package repository;

import java.util.List;
import domain.User;
import domain.exceptions.DuplicateException;

public interface UserRepository {
	public User validate(String username, String password);
	public User getUser(int id);
	public User getUser(String userName, String email);
	public User getUserByUserName(String userName);
	public User getUserByEmail(String email);
	public void newUser(User user) throws DuplicateException;
	public List<User> getRegisteredUsers();
	public List<User> getDebtUsers();
	List<User> getPointsFromAll(String order);
}
